package com.mdd.common.entity.zdjd;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Date;

@Data
@ApiModel("设备状态变化记录实体")
@TableName("t_zdjd_device_state_record")
public class TZdjdDeviceStateRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "")
    private Long id;

    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    @ApiModelProperty(value = "回传数据设备唯一id")
    private String deviceUuid;

    @ApiModelProperty(value = "设备编码/设备型号")
    private String deviceCode;

    @ApiModelProperty(value = "设备状态（0:待机 1:运行 2:故障停机 3:保温）")
    private Integer status;

    @ApiModelProperty(value = "报警类型编码")
    private String alarmCode;

    @ApiModelProperty(value = "时间戳（精确到秒的采集时间）")
    private String timeStamp;

    @ApiModelProperty(value = "GPS经度")
    private Double longitude;

    @ApiModelProperty(value = "GPS纬度")
    private Double latitude;

     @ApiModelProperty(value = "瞬时油耗（单位mL/min）")
    private Double instantaneousOilConsumption;

    @ApiModelProperty(value = "本次油耗（单位mL）")
    private Double thisOilConsumption;

    @ApiModelProperty(value = "累计油耗（单位L）")
    private Double totalOilConsumption;

    @ApiModelProperty(value = "本次运行时间（单位min）")
    private Double thisRunTime;

    @ApiModelProperty(value = "累计运行时间（单位h）")
    private Double totalRunTime;

    @ApiModelProperty(value = "")
    private Date createTime;

    @ApiModelProperty(value = "")
    private Date updateTime;

    @ApiModelProperty(value = "")
    private String year;

    @ApiModelProperty(value = "")
    private String month;

    @ApiModelProperty(value = "")
    private String day;

}